package cn.tedu.sprig.diobj;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DeptTest {
    @Test
    public void mepTest(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean-diobj.xml");
        Emp emp = (Emp) context.getBean("emp1",Emp.class);
        System.out.println("emp="+emp);
    }
}
